﻿using Sumc.Client.ModernUI.Common;
using Sumc.Models.Responses;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Sumc.Client.ModernUI.Services
{
    public class StopRepository : BaseRepository, IStopRepository
    {
        public StopRepository()
        {
            this.expireTime = new TimeSpan(6, 0, 0);
        }

        public async Task<IEnumerable<MainStop>> GetMainStops()
        {
            var url = string.Format("{0}Stops", Constants.BaseSumcApiUrl);
            var directions = await this.Get<IEnumerable<MainStop>>(url);
            return directions;
        }
    }
}
